#ifndef _WIFI_H
#define _WIFI_H
#include <string.h>
#include "usart.h"
extern uint8_t USART5_RxBuff[1024];
extern volatile uint8_t USART5_RxCounter;
#define WiFi_RxCounter USART5_RxCounter
#define WiFi_RX_BUF USART5_RxBuff
#define ESP8266_USART(fmt, ...) USART_printf(&huart5, fmt, ##__VA_ARGS__)
#define u1_USART(fmt, ...) USART_printf(&huart1, fmt, ##__VA_ARGS__)
#define ID	"60Pro"
#define PASSWORD "1446476417"

#define ServerIP "192.168.1.68"
#define ServerPort  9000

char WIFI_Config0(int time);
char WIFI_Config(int time, char *cmd, char *response);
char WIFI_Router(int time);
char WIFI_ConnectTCP(int time);
void WIFI_Connect(void);
void ESP8266_Clear(void);
int WIFI_SendData(const char *data);
#endif
